package com.example.study.manager_plus.mybatis_plus.service.impl;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.example.study.manager_plus.mybatis_plus.entity.DeviceInfo;
import com.example.study.manager_plus.mybatis_plus.mapper.DeviceInfoMapper;
import com.example.study.manager_plus.mybatis_plus.service.DeviceInfoService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 设备详情表 服务实现类
 * </p>
 *
 * @author 路飞4
 * @since 2024-06-26
 */
@Service
public class DeviceInfoServiceImpl extends ServiceImpl<DeviceInfoMapper, DeviceInfo> implements DeviceInfoService {

    @Override
    public int saveData(DeviceInfo data) {
        return baseMapper.insert(data);
    }

    @Override
    public List<DeviceInfo> queryAll() {
        QueryWrapper<DeviceInfo> queryWrapper=new QueryWrapper<>();

        return baseMapper.selectList(queryWrapper);
    }
}
